<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>E-天下商旅</title>
<link href="${ctx}/resources/css/page_operat.css" rel="stylesheet" type="text/css">

</head>

<body>

<jsp:include page="../commons/header.jsp" >
	 <jsp:param name="currentMenu" value="menu2"/>
</jsp:include>

<div class="main_box">
<div class="main cf">

<jsp:include page="../commons/left.jsp"></jsp:include>
	<div class="right">
		<div class="right_box" id="right_box">
			<!-- page -->
		</div>
	</div>
		
</div>
</div>

<jsp:include page="/WEB-INF/jsp/commons/footer.jsp"></jsp:include>

<script src="${ctx}/resources/script/jquery-1.7.min.js" type="text/javascript"></script>
<script src="${ctx}/resources/script/common.js"></script>
<script type="text/javascript">
	$.ajaxSetup ({
	cache: false //close AJAX cache
	});
	$(function(){
	$("#right_box").load("${ctx}/mlMR/listPage?timestap="+(new Date()).valueOf());	
	});

	/**
	 * 跳转页面
	 */
	function goPage(pageNo){	
		$("#right_box").load("${ctx}/mlMR/listPage?pageNo="+pageNo+"&timestap="+(new Date()).valueOf());
		
	}
	
	function addMessage(){
	   window.location.href="${ctx}/mlMR/addIndex";
	}
	
	function deleteMessage(id,pageNo,totalCount,pageSize){
	     if (confirm("确认要删除？")) {
	    	   if(parseInt(totalCount)%parseInt(pageSize)==1)
	    	   {
	    		   pageNo = parseInt(pageNo)-1;
	    	   }
	           $("#right_box").load("${ctx}/mlMR/delMessage?id="+id+"&pageNo="+pageNo+"&timestap="+(new Date()).valueOf());
	        }

	}

</script>
</body>
</html>

